package admin_router

import (
	"blog_go/api/admin_api"
	"blog_go/middleware"
)

func (r adminRouterGroup) AdminArticleRouter() {
	adminArticleApi := admin_api.AdminApiGroupApp.AdminArticleApi
	r.POST("/add", middleware.JwtAuthAdmin(), adminArticleApi.ArticleAdd)
	r.GET("/list", middleware.JwtAuthAdmin(), adminArticleApi.ArticleList)
	r.DELETE("/del", middleware.JwtAuthAdmin(), adminArticleApi.ArticleDel)
	r.PUT("/update", middleware.JwtAuthAdmin(), adminArticleApi.ArticleUpdate)
}
